package com.cwj;

import java.util.ArrayList;
import java.util.List;

/**
 * @author chenwujie
 * @date 2021-02-19 14:04
 */
public class StringBuiderTest {
    public static void main(String[] args) {
//        String a = "a" + "b";
//        String a2 = a + "c";
//        System.out.println(a2);
        StringBuiderTest stringBuiderTest = new StringBuiderTest();
        stringBuiderTest.test();
        test3();
    }

    private void test(){
        List<String> list = new ArrayList<>();
        list.add("sdf");
        System.out.println(list.get(0));
    }


    public static void test3(){
        Integer a = 1;
        Integer b = 2;
        Integer c = 3;
        Integer d = 3;
        Integer e = 321;
        Integer f = 321;
        Long g = 3L;
        System.out.println(c == d);
        System.out.println(e == f);

        System.out.println(c == (a + b));
        System.out.println(c.equals(a + b));

        System.out.println((a + b) == g);
        System.out.println(g.equals(a + b));
    }
}
